const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
  lintOnSave: false,
  devServer: {
    proxy: {
      "/jetlinks": {
		target: "http://110.42.242.15:23333",
        changeOrigin: true,
		ws: "http://110.42.242.15:23333",
        pathRewrite: {
          '^/jetlinks': ''
        }
      },
    }
  },
  configureWebpack: {
    plugins: [
      new CopyWebpackPlugin([
          { from: 'node_modules/@liveqing/liveplayer/dist/component/crossdomain.xml'},
          { from: 'node_modules/@liveqing/liveplayer/dist/component/liveplayer.swf'},
          { from: 'node_modules/@liveqing/liveplayer/dist/component/liveplayer-lib.min.js', to: 'js/'},
      ])
    ]
  }
}


